import { http } from "../../utils/http";
//采购入库--获取最大入库单号
export const getMaxInStockId = () => {
  return http.request("get", "/box/getMaxInStockId");
};

//采购入库--获取未完成采购申请单号
export const getUnfinishedPurchaseOrderId = () => {
  return http.request("get", "/box/getUnfinishedPurchaseOrderId");
};


// 采购入库--按订单号获取采购申请单的入库信息
export const getUnfinishedPurchaseOrderDetails = (POid) => {
  return http.request("post", "/box/getUnfinishedPurchaseOrderDetails",{ data: POid });
};

// 采购入库--新增入库单

export const insertInStock = (insertInStockData) => {
  return http.request("post", "/box/insertInStock",{ data: insertInStockData });
};


// 木箱入库情况--获取所有入库信息
export const getInStock = () => {
  return http.request("get", "/box/getInStock");
};

// 木箱入库情况--删除入库信息
export const DeleteInStock = () => {
  return http.request("post", "/box/DeleteInStock");
};

